package com.yingxin.yxerp.module.inform.vo.req;

import com.yingxin.yx.framework.commons.vo.CommonReqVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 通知公告-公告
 * @author zhuchangjie
 * @since 2021-12-21
 */

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "NoticeCreateVo对象", description = "通知公告-公告")
public class NoticeCreateVo extends CommonReqVo {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "标题 ")
    @NotBlank
    @Length(max = 50)
    private String title;

    @ApiModelProperty(value = "公告类型id ")
    @NotBlank
    private String noticeTypeId;

    @ApiModelProperty(value = "有效期天数")
//    @NotNull
//    @PositiveOrZero
    private Integer expireDays;

    @ApiModelProperty(value = "公告内容")
    private String content;


}
